package com.zzc.action;

import com.zzc.bean.ResultInfo;
import org.apache.struts2.ServletActionContext;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by Administrator on 2017/4/13 0013.
 */
public class BaseAction {
    private HttpServletRequest request= ServletActionContext.getRequest();
    private HttpServletResponse response= ServletActionContext.getResponse();

    public HttpServletRequest getRequest() {
        return request;
    }

    public HttpServletResponse getResponse() {
        return response;
    }
    public String getPath() {
        return request.getContextPath();
    }
}
